#ifndef __IMG_UTILS_H__
#define __IMG_UTILS_H__

#include <opencv2/opencv.hpp>

int saveNV12ToJpg(const uint8_t* nv12_data, int width, int height, const std::string& file_name);
void imageDownsample(const std::string& input_path, const std::string& output_path, int target_width, int target_height);
void nv12ToJpgWithCropAndResize(const uint8_t* nv12_data, int width, int height, const std::string& file_name, int x, int y, int ratio);
cv::Size getImageSize(const std::string& input_path);
void saveNV12ToJpgWithResize(const uint8_t* nv12_data, int width, int height, const std::string& file_name, int target_width, int target_height);

#endif